package com.example;

import com.example.proxybean.interceptor.impl.MyInterceptorImpl;
import com.example.proxybean.proxy.ProxyBean;
import com.example.proxybean.service.impl.MyServiceImpl;

public class Main {
    public static void main(String[] args) {

        MyServiceImpl myService = new MyServiceImpl();
        ProxyBean bean = ProxyBean.generateProxyBean(myService, new MyInterceptorImpl());
        bean.invoke();
    }
}
